﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AccountInfo.aspx.cs" Inherits="Account_AccountInfo" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="../../css/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link href="../../css/admin.css" rel="stylesheet" />
    <script src="../../js/jquery-1.7.2.min.js"></script>
    <script src="../../js/laydate/laydate.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <div class="row">
                <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
                    起始日期：       
                    <br />
                    <asp:TextBox runat="server" ID="txtAccountStart" CssClass="txtSize" onfocus="laydate()"></asp:TextBox>
                </div>
                <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
                    截至日期：       
                    <br />
                    <asp:TextBox runat="server" ID="txtAccountEnd" CssClass="txtSize" onfocus="laydate()"></asp:TextBox>
                </div>
                <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
                    订单号：
                    <br />
                    <asp:TextBox runat="server" ID="txtOrderID" CssClass="txtSize"></asp:TextBox>
                </div>

                <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
                    用户昵称：
                    <br />
                    <asp:TextBox runat="server" ID="txtNickName" CssClass="txtSize"></asp:TextBox>
                </div>

                <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
                    账单类型：       
                    <br />
                    <asp:DropDownList runat="server" ID="ldlAccountType" CssClass="txtSize"></asp:DropDownList>
                </div>

                <div class="col-lg-4 col-md-4 col-sm-6 colSpace">
                    支付方式：       
                     <br />
                    <asp:DropDownList runat="server" ID="ddlPayType" CssClass="txtSize">
                        <asp:ListItem Text="全部" Value="0"></asp:ListItem>
                        <asp:ListItem Text="微信支付" Value="1"></asp:ListItem>
                        <asp:ListItem Text="账户余额" Value="2"></asp:ListItem>
                        <asp:ListItem Text="积分支付" Value="3"></asp:ListItem>

                    </asp:DropDownList>
                </div>


                <div class="col-lg-4 col-md-4 col-sm-6 colSpace" style="margin-top: -2px">
                    <br />
                    <asp:Button runat="server" ID="btnSelect" Text="查询" CssClass="btn btn-primary btnSize" OnClick="btnSelect_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
                     <asp:Label runat="server" CssClass="txtWarn" ID="lblWarn"></asp:Label>
                </div>
            </div>
            <div>
                <br />
                <asp:GridView runat="server" ID="gridList" CssClass="table table-striped table-bordered table-hover" AutoGenerateColumns="False" DataKeyNames="AccountLogID">
                    <Columns>
                        <asp:BoundField DataField="NickName" HeaderText="用户昵称" HeaderStyle-Width="18%" />
                        <asp:BoundField DataField="Amount" HeaderText="交易金额" />
                        <asp:TemplateField HeaderText="支付方式">
                            <ItemTemplate>
                                <%# DGFormatSex(Convert.ToString(DataBinder.Eval(Container.DataItem,"PayType"))) %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="AccountTypeName" HeaderText="账单类型" />
                        <asp:BoundField DataField="CourseName" HeaderText="课程名称" />
                        <asp:BoundField DataField="CreateTime" HeaderText="交易时间" />
                        <asp:BoundField DataField="OrderID" HeaderText="订单号" />
                        <asp:BoundField DataField="Memo" HeaderText="备注"  />
                    </Columns>
                </asp:GridView>
            </div>
            <div class="pagerLayout">
                <webdiyer:AspNetPager ID="netPager" CssClass="pagerLayout" runat="server" FirstPageText="首页" LastPageText="尾页"
                    NextPageText="下一页" OnPageChanged="netPager_PageChanged" PrevPageText="上一页"
                    PageSize="15">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </form>
</body>
</html>
